//
// Source code recreated from ConfigVo .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ht.modules.system.online.graphreport.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import com.ht.modules.system.online.graphreport.entity.OnlGraphreportTempletItem;
import com.ht.modules.system.online.graphreport.mapper.OnlGraphreportTempletItemMapper;
import com.ht.modules.system.online.graphreport.service.IOnlGraphreportTempletItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OnlGraphreportTempletItemServiceImpl extends ServiceImpl<OnlGraphreportTempletItemMapper, OnlGraphreportTempletItem> implements IOnlGraphreportTempletItemService {
    @Autowired
    private OnlGraphreportTempletItemMapper onlGraphreportTempletItemMapper;

    public OnlGraphreportTempletItemServiceImpl() {
    }

    public List<OnlGraphreportTempletItem> selectByMainId(String mainId) {
        QueryWrapper<OnlGraphreportTempletItem> itemsQueryWrapper = new QueryWrapper<>();
        itemsQueryWrapper.eq("graphreport_templet_id", mainId);
        itemsQueryWrapper.orderByAsc(List.of("group_num"));
        itemsQueryWrapper.orderByAsc(List.of("order_num"));
        return this.onlGraphreportTempletItemMapper.selectList(itemsQueryWrapper);
    }
}
